package com.zhss.ddd.lottery.draw.core.entity;

import com.zhss.ddd.lottery.draw.activity.vo.DrawLotteryContext;
import com.zhss.ddd.lottery.draw.activity.vo.CandidatePrize;
import com.zhss.ddd.lottery.draw.activity.vo.WinPrize;
import lombok.Data;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * 抽奖算法
 */
@Data
@Scope("prototype")
@Component
public class DrawLotteryAlgorithm {

    private DrawLotteryContext drawLotteryContext;


    /**
     * 执行抽奖算法
     * @return
     */
    public WinPrize execute() {
        System.out.println("检查用户已经参与过几次抽奖......");
        System.out.println("根据每个奖品的抽中概率执行抽奖算法.....");
        System.out.println("对抽中的奖品检查用户已经抽中过几次，是否还能抽中......");
        return null;
    }

}
